 <body data-spy="scroll" data-target=".bs-docs-sidebar">

   <?php include('templates/menu.html'); ?>

    <!-- Subhead
    
    <header class="jumbotron subhead" id="overview">
      <div class="container">
        <h1>Getting started</h1>
        <p class="lead">Overview of the project, its contents, and how to get started with a simple template.</p>
      </div>
    </header>================================================== -->


    <div class="container">
      	  	           
          <div class="row-fluid">	   
            <div class="bs-docs-example <?php echo  $cate_en ?>" id="<?php echo $cate?>">	 
            	<div class="span12 row">                                            		                    
                <ul class="nav nav-pills ">                 	        
                   <li class="prettyprint"> 共
                   	<span class="label label-success">                   		 
                   	   <?php echo $totalNum; ?>                                         	
                   	</span>条分类为
                   	<span class="label label-success">                   		 
                   	   <?php echo $cate; ?>                                         	
                   	</span> 的记录，以下是第
                   	<span class="badge badge-important">                   		 
                   	   <?php echo $page; ?>                                         	
                   	</span>页                	                   	 
                   </li>           
                   <li class="dropdown  pull-right " id="menutest1">
                     <a class="dropdown-toggle prettyprint " data-toggle="dropdown" href="#menutest1">
                       <?php  
                         $temp = $site->echoSortTypeArr();                         
                         echo $temp[$sorttype][0];                         
                       ?>                       
                       <b class="caret"></b>
                     </a>
                     <ul class="dropdown-menu">
                     	 <?php 
                     	   for($i=0;$i< count($temp);$i++){
                     	 	   if($sorttype != $i){
                     	 ?>
                     	 	   <li><a href="<?php echo $site->echoUrl().$cate_en."/".$i ?>" target="_parent"><i class="<?php echo $temp[$i][1] ?>"></i><?php echo " ".$temp[$i][0] ?></a></li>
                     	 <?php 	  
                     	 	   }
                     	 	 }
                     	 ?>             
                     </ul>
                   </li>            
                </ul>
              </div>         	                             
            <?php                                  
               $query = $db->fn_select_type($cate,$page,$site->echoColNum());
               $num = 1; 
               
               $total = $db->num_rows($query); 
             
               while($row = $db->fetch_assoc($query)){     
            ?>                       
                   <ul class="thumbnails container-fluid">
                    <li class="span11">
                      <div class="thumbnail <?php echo "col".$num?>" > 
                      	<!--[if IE ]>
                         <img class="img-rounded" src="<?php echo $row['detailpic']?>"  alt="">
                        <![endif]-->                              
                        <!--[if !IE]><!--> 
                        <img class="img-rounded" src="<?php echo $row['detailpic']?>"  data-src="holder.js/100x144" alt="">              
                        <!--<![endif]--> 
                   
                        <div class="caption">  
                          <a class="brand"  href="<?php echo $site->echoUrl().$row['id']?>"><h4 class="text-center"><?php echo $row['title']?></h4></a>
                          <p>类型：<?php echo $row['movietype'] ?></p>
                          <p>主演：<?php echo $row['player'] ?></p>
                          <?php if($row['imdbstar']!=0){      ?>    
                          <p>IMDB：<span class="badge badge-warning" ><?php echo $row['imdbstar'] ?></span></p>
                          <?php } ?>
                          <?php if($row['doubanstar']!=0){  ?>          
                          <p>豆瓣：<span class="badge badge-important"><?php echo $row['doubanstar'] ?></span></p>
                          <?php } ?> 
                                   
                          <p>
                          <?php if($row['downpath']==""){  ?>             	
                          <a class="btn btn-info" href="#"><i class="icon-download"></i>下载</a>
                          <?php } ?>             
                          <?php if($row['oldurl']!=""){  ?>             
                           <a class="btn btn-success" href="#"><i class="icon-play"></i>播放</a>
                          <?php } ?>               
                           </p>           
                        </div>
                        <div class="clearfix"></div>
                        

                                   
                      </div>
                    </li>                         
                    <li class="span1 no-margin-left">   
                    	 <div class="arrows">                      	
                    	<?php if($num!=$total){ ?>                                                     
                           <div class="bottom" data-to="<?php echo "col".++$num;?>"></div>                               
                      <?php }else{ ?>
                      
                           <div class="bottom" data-to="footer"></div>    
                      <?php } ?>
                       </div>                      
                      
                                         
                    </li> 
                                            
                   </ul>                  
              <?php               
               } 
               echo $site->pageNav($totalNum,$site->echoColNum(),$page,$site->showPage(),$site->echoUrl().$cate_en."/".$sorttype);                                                 
              ?>  	                                             
            </div>
          </div> <!-- end of row-fluid-->   
             
        </div>        
   
      

    </div>

 






 </body>